

<div class="layui-form" lay-filter="layuiadmin-form-role" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">角色姓名</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="role_name" value="{{ d.params.role_name || '' }}" placeholder="请输入角色姓名" lay-verify="required" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <script type="text/html" template>
        <input type="hidden" name="id" id="id" value="{{ d.params.id || '' }}">
    </script>
    
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-user-role-submit" value="确认" class="layui-btn">
        </div>
    </div>
</div>

<script>
    layui.use(['admin', 'form'], function(){
        var $ = layui.$
        ,form = layui.form;
    });
</script>
